home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Kudos and Q's.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Kudos and Q's
  2. Sent:        5/27/96 4:13 AM
  3. Received:    5/28/96 8:25 AM
  4. From:        Dave Wilson, dwilson@best.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Brian,
  9.  
  10. >Lesson/question: I looked at the DU folder for SOM examples since I want my
  11. >calculation engine wrapped with SOM (or at least I think I do) so that I
  12. >can later turn it into a thread or separate process by replacing the SOM
  13. >library.
  14.  
  15. Yes, you do want your calculation engine wrapped in SOM. Then you can use
  16. it from many different parts and/or applications. You can also build it,
  17. test it, and maintain it as a separate project from your part. All you part
  18. needs to do is provide a user interface.
  19.  
  20. >The meta-question is: if I use SOM directly, will my source code be
  21. >cross-platform compatible (I know it probably is for OS/2, but what about
  22. >the $20,000 question, Windows95/NT?).
  23.  
  24. SOM exists on Mac, Windows, OS/2, and AIX. I think IBM has also put in on
  25. AS/400 and MVS. Just be sure not to use any platform-specific code in your
  26. SOM library, and you should be able to recompile it for many different
  27. platforms.
  28.  
  29. >The first more pragmatic question is: I don't really care about the "S",
  30. >".xh" and ".xih" files that are the output of the SOM compiler, do I?  This
  31. >is just stuff to placate the linker and bind my calls, right?
  32.  
  33. The ".xh" file must be included by C++ clients who use your SOM library.
  34.  
  35. The ".xih" file must be included by the ".cpp" file that contains the
  36. implementation of your SOM functions.
  37.  
  38. The ".exp" file should be added to your CodeWarrior project just like the
  39. ".idl" file. My latest version of these samples does it this way. I hope
  40. the ODF team has put these up on their web site.
  41.  
  42. >The second more pragmatic question is: Metrowerks CW9 binds ".idl" with the
  43. >"SOMObjects TS" CodeWarrior plugin, does this mean the Finance SOM example
  44. >could be reworked so it doesn't need the MPW make file (nb, the MPW
  45. >'script' file)?
  46.  
  47. Correct. You do not need the MPW script file.
  48.  
  49. -Dave
  50.  
  51. Dave Wilson
  52. Personal Concepts
  53. 635 Wellsbury Way
  54. Palo Alto, CA 94306
  55. voice: 415-494-6763
  56. email: dwilson@best.com
  57.  
  58.